package kotlinquanweizhinan.chapt07.substring
/*
* Trvern 英['tævən]美['tævərn] n.酒馆;客栈
* */
class Trvern {
}

const val TRVERN_NAME ="Taernyl's Folly"

fun main() {
placeOrder()
}
private fun placeOrder(){
    val indexOfApostrophe = TRVERN_NAME.indexOf('\'')
    val tavernMaster = TRVERN_NAME.substring(0 until indexOfApostrophe)
    println("Madrigal speaks with $tavernMaster about their order.") //adrigal 与 Taernyl 谈论他们的订单。
}